home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / accessibility / nsIAccessibleValue.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  4KB  |  131 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIAccessibleValue.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIAccessibleValue_h__
  6. #define __gen_nsIAccessibleValue_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17.  
  18. /* starting interface:    nsIAccessibleValue */
  19. #define NS_IACCESSIBLEVALUE_IID_STR "f4abbc2f-0f28-47dc-a9e9-f7a1719ab2be"
  20.  
  21. #define NS_IACCESSIBLEVALUE_IID \
  22.   {0xf4abbc2f, 0x0f28, 0x47dc, \
  23.     { 0xa9, 0xe9, 0xf7, 0xa1, 0x71, 0x9a, 0xb2, 0xbe }}
  24.  
  25. class NS_NO_VTABLE nsIAccessibleValue : public nsISupports {
  26.  public: 
  27.  
  28.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IACCESSIBLEVALUE_IID)
  29.  
  30.   /* readonly attribute double maximumValue; */
  31.   NS_IMETHOD GetMaximumValue(double *aMaximumValue) = 0;
  32.  
  33.   /* readonly attribute double minimumValue; */
  34.   NS_IMETHOD GetMinimumValue(double *aMinimumValue) = 0;
  35.  
  36.   /* readonly attribute double currentValue; */
  37.   NS_IMETHOD GetCurrentValue(double *aCurrentValue) = 0;
  38.  
  39.   /**
  40.       * We want to be able to return a success condition of the value
  41.       *   getting set. ie if the value is not within the interval of
  42.       *   minimumValue-maximumValue
  43.       */
  44.   /* boolean setCurrentValue (in double value); */
  45.   NS_IMETHOD SetCurrentValue(double value, PRBool *_retval) = 0;
  46.  
  47. };
  48.  
  49. /* Use this macro when declaring classes that implement this interface. */
  50. #define NS_DECL_NSIACCESSIBLEVALUE \
  51.   NS_IMETHOD GetMaximumValue(double *aMaximumValue); \
  52.   NS_IMETHOD GetMinimumValue(double *aMinimumValue); \
  53.   NS_IMETHOD GetCurrentValue(double *aCurrentValue); \
  54.   NS_IMETHOD SetCurrentValue(double value, PRBool *_retval); 
  55.  
  56. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  57. #define NS_FORWARD_NSIACCESSIBLEVALUE(_to) \
  58.   NS_IMETHOD GetMaximumValue(double *aMaximumValue) { return _to GetMaximumValue(aMaximumValue); } \
  59.   NS_IMETHOD GetMinimumValue(double *aMinimumValue) { return _to GetMinimumValue(aMinimumValue); } \
  60.   NS_IMETHOD GetCurrentValue(double *aCurrentValue) { return _to GetCurrentValue(aCurrentValue); } \
  61.   NS_IMETHOD SetCurrentValue(double value, PRBool *_retval) { return _to SetCurrentValue(value, _retval); } 
  62.  
  63. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  64. #define NS_FORWARD_SAFE_NSIACCESSIBLEVALUE(_to) \
  65.   NS_IMETHOD GetMaximumValue(double *aMaximumValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMaximumValue(aMaximumValue); } \
  66.   NS_IMETHOD GetMinimumValue(double *aMinimumValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMinimumValue(aMinimumValue); } \
  67.   NS_IMETHOD GetCurrentValue(double *aCurrentValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCurrentValue(aCurrentValue); } \
  68.   NS_IMETHOD SetCurrentValue(double value, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCurrentValue(value, _retval); } 
  69.  
  70. #if 0
  71. /* Use the code below as a template for the implementation class for this interface. */
  72.  
  73. /* Header file */
  74. class nsAccessibleValue : public nsIAccessibleValue
  75. {
  76. public:
  77.   NS_DECL_ISUPPORTS
  78.   NS_DECL_NSIACCESSIBLEVALUE
  79.  
  80.   nsAccessibleValue();
  81.  
  82. private:
  83.   ~nsAccessibleValue();
  84.  
  85. protected:
  86.   /* additional members */
  87. };
  88.  
  89. /* Implementation file */
  90. NS_IMPL_ISUPPORTS1(nsAccessibleValue, nsIAccessibleValue)
  91.  
  92. nsAccessibleValue::nsAccessibleValue()
  93. {
  94.   /* member initializers and constructor code */
  95. }
  96.  
  97. nsAccessibleValue::~nsAccessibleValue()
  98. {
  99.   /* destructor code */
  100. }
  101.  
  102. /* readonly attribute double maximumValue; */
  103. NS_IMETHODIMP nsAccessibleValue::GetMaximumValue(double *aMaximumValue)
  104. {
  105.     return NS_ERROR_NOT_IMPLEMENTED;
  106. }
  107.  
  108. /* readonly attribute double minimumValue; */
  109. NS_IMETHODIMP nsAccessibleValue::GetMinimumValue(double *aMinimumValue)
  110. {
  111.     return NS_ERROR_NOT_IMPLEMENTED;
  112. }
  113.  
  114. /* readonly attribute double currentValue; */
  115. NS_IMETHODIMP nsAccessibleValue::GetCurrentValue(double *aCurrentValue)
  116. {
  117.     return NS_ERROR_NOT_IMPLEMENTED;
  118. }
  119.  
  120. /* boolean setCurrentValue (in double value); */
  121. NS_IMETHODIMP nsAccessibleValue::SetCurrentValue(double value, PRBool *_retval)
  122. {
  123.     return NS_ERROR_NOT_IMPLEMENTED;
  124. }
  125.  
  126. /* End of implementation class template. */
  127. #endif
  128.  
  129.  
  130. #endif /* __gen_nsIAccessibleValue_h__ */
  131.